-
Home
-
Leat
-
2.4.9
-
Code
-
Classes
- PromotionRulesEndpoint
| Total Complexity |
37 |
| Dependencies |
13 |
| Dependents |
1 |
| Total lines |
434 |
| Lines of code |
311 |
| Logical lines of code |
86 |
| Comment lines |
84 |
| Methods |
9 |
| Properties |
3 |
Methods 9
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| create_or_update_promotion_rule() |
A |
43 |
9 |
47 |
| register_routes() |
A |
39 |
4 |
79 |
| get_promotion_rule_args() |
S |
39 |
3 |
81 |
| get_promotion_rules_admin() |
S |
49 |
6 |
31 |
| get_coupons_by_user_id() |
S |
51 |
5 |
27 |
| get_promotion_rule() |
S |
53 |
4 |
23 |
| get_promotion_rules() |
S |
57 |
4 |
15 |
| __construct() |
S |
74 |
1 |
5 |
| init() |
S |
79 |
1 |
3 |